package operate

import (
	"gin-demo/common"
	"gin-demo/container"
	"gin-demo/dao/operate"
	"gin-demo/entity"
)

type UserServiceImp struct {
}

func (c UserServiceImp) List(pageRequest common.PageRequest) (*entity.UserList, error) {
	var userDao = container.Get("userDao").(operate.UserDao)
	userList, err := userDao.List(pageRequest)
	if err != nil {
		return nil, err
	}
	return userList, nil
}
